package sphere.model;

public class Sphere {
	private double rayon;
	
	public Sphere(){}
	
	public Sphere(double rayon){
		this.rayon = rayon;
	}

	public double getRayon() {
		return rayon;
	}

	public void setRayon(double rayon) {
		this.rayon = rayon;
	}
	
	public double calculerSurface(){
		double surface = 4 * Math.PI * Math.pow(this.rayon,2);
		return surface; 
	}
	
	public double calculerVolume(){
		double volume = 4/3 * Math.PI * Math.pow(this.rayon,3);
		return volume;
	}
	
	
			
}
